package com.fun.feifun.modules.business.impl;

import com.fun.feifun.modules.business.model.BusinessUserRoute;
import com.fun.feifun.modules.business.dao.BusinessUserRouteMapper;
import com.fun.feifun.modules.business.model.dto.BusinessGoodsRouteDto;
import com.fun.feifun.modules.business.service.IBusinessUserRouteService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业务用户商品信息 服务实现类
 * </p>
 *
 * @author wkf
 * @since 2024-08-18
 */
@Service
public class BusinessUserRouteServiceImpl extends ServiceImpl<BusinessUserRouteMapper, BusinessUserRoute> implements IBusinessUserRouteService {


    @Override
    public List<BusinessGoodsRouteDto> getGoodsRoute(Long goodsId,Long userId,List<Long> notSupplierIds) {
        return  this.baseMapper.getGoodsRoute(goodsId,userId,notSupplierIds);
    }
    @Override
    public List<BusinessGoodsRouteDto> getGoodsRoutes(List<Long> goodsIds) {
        return  this.baseMapper.getGoodsRoutes(goodsIds);
    }

    @Override
    public BusinessGoodsRouteDto getRoute(Long goodsId, Long supplierId) {
        return this.baseMapper.getRoute(goodsId,supplierId);
    }
}
